package com.pay.model;

import java.util.Date;

/*****************************************
 *                                       *
 *  @dookay.com Internet make it happen *
 *  ----------- -----------------------  *
 *  dddd  ddddd Internet make it happen  *
 *  o   o     o Internet make it happen  *
 *  k    k    k Internet make it happen  *
 *  a   a     a Internet make it happen  *
 *  yyyy  yyyyy Internet make it happen  *
 *  ----------- -----------------------  *
 *  @dookay.com Internet make it happen *
 *                                       *
 *  面向对象面向君，不负代码不负卿       *
 ****************************************/


public class Goods {

    public Goods(Integer id, String goodsName, String goodNumber, Integer stock, Date createTime, Date upTime) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodNumber = goodNumber;
        this.stock = stock;
        this.createTime = createTime;
        this.upTime = upTime;
    }

    //商品id
    private Integer id;
    //商品名称
    private String goodsName;
    //商品编号
    private String goodNumber;
    //商品库存
    private Integer stock;
    //创建时间
    private Date createTime;
    //修改时间
    private Date upTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodNumber() {
        return goodNumber;
    }

    public void setGoodNumber(String goodNumber) {
        this.goodNumber = goodNumber;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", goodNumber='" + goodNumber + '\'' +
                ", stock=" + stock +
                ", createTime=" + createTime +
                ", upTime=" + upTime +
                '}';
    }
}
